﻿using System;

namespace pbvs.Models.DomainModels
{
    public class ClientInformationDomainModel
    {
        public int ClientId { get; set; }
        public string Email { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string CompanyName { get; set; }
        public string Address { get; set; }
        public string Address2 { get; set; }
        public string City { get; set; }
        public string State { get; set; }
        public string Zip { get; set; }
        public string Phone { get; set; }

        public string FullAddress
        {
            get
            {
                return string.Format("{0}\r\n{1} {2}, {3} {4}", Address,
                                     string.IsNullOrEmpty(Address2) ? "" : string.Format("{0}\r\n", Address2), City, State,
                                     Zip, Environment.NewLine);
            }
        }

        public string NameAndAddress
        {
            get 
            { 
                return string.Format("{0} {1}\r\n{2}", FirstName, LastName, FullAddress); 
            }
        }
    }
}